﻿<%@ Page Language="C#" AutoEventWireup="true" Codebehind="addvaluableseval.aspx.cs"
    Inherits="LabMS.Web.Equipment.Valuables.addvaluableseval" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>贵重仪器设备年度效益评价表</title>
    <link type="text/css" rel="stylesheet" href="../../style/screen.css" />
    <!--[if lte IE 6]>
    <link type="text/css" rel="stylesheet" href="../../style/ie6.css" />
    <![endif]-->
    <!--[if lte IE 7]>
    <link type="text/css" rel="stylesheet" href="../../style/ie7.css" />
    <![endif]-->

    <script src="../../js/calendar5.js" type="text/javascript"></script>

    <script type="text/javascript" src="../../js/jQuery/jquery-1.3.1.js"></script>

    <script type="text/javascript">

        var c = new Calendar("c");
        document.write(c);
    </script>

</head>
<body class="mainBody">
    <form id="form1" runat="server">
        <div class="main">
            <div id="pageInfo" class="clearfix">
                <div class="title">
                    <label>
                        贵重仪器设备年度效益评价表
                    </label>
                </div>
            </div>
        </div>
        <div class="main">
            <p>
                <asp:Button ID="btSave" CssClass="button" runat="server" Text="保存" />
            </p>
            <p style="display: none;">
                <asp:DropDownList ID="DropDownList1" runat="server">
                    <asp:ListItem>2008-2009</asp:ListItem>
                </asp:DropDownList>
                年 贵重仪器设备年度效益评价表
            </p>
            <table>
                <tr>
                    <td>
                        <label class="itemTitle">
                            仪器编号:</label>
                    </td>
                    <td>
                        <asp:TextBox ID="tbNumbers" runat="server"></asp:TextBox>
                        <input onclick="OpenEditWin2('../../CommonPage/valuablesselectlist.aspx?location=@ALL@&type=guizhongyiqi',500,400,'tbNumbers', 'tbName','tbStandards','tbUnitPrice','tbResponesoblePerson','tbPurchaseDate')"
                            type="button" class="button" value="..." />
                    </td>
                    <td>
                        <label class="itemTitle">
                            仪器名称:</label>
                    </td>
                    <td>
                        <asp:TextBox ID="tbName" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        <label class="itemTitle">
                            购置日期:</label>
                    </td>
                    <td>
                        <asp:TextBox ID="tbPurchaseDate" runat="server"></asp:TextBox>
                    </td>
                    <td>
                        <label class="itemTitle">
                            规格:</label>
                    </td>
                    <td>
                        <label class="itemTitle">
                            <asp:TextBox ID="tbStandards" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        <label class="itemTitle">
                            单价:</label>
                    </td>
                    <td>
                        <asp:TextBox ID="tbUnitPrice" runat="server"></asp:TextBox>
                    </td>
                    <td>
                        <label class="itemTitle">
                            仪器负责人:</label>
                    </td>
                    <td>
                        <asp:TextBox ID="tbResponesoblePerson" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        <label class="itemTitle">
                            评价日期:</label>
                    </td>
                    <td colspan="3">
                        <asp:TextBox ID="tbOperatDate" runat="server"></asp:TextBox>
                    </td>
                </tr>
            </table>
        </div>

        <script type="text/javascript">
        function OpenEditWin(frmWin, width, height, id1, id2) {
            var me;
            me = window;
            var ret = window.showModalDialog(frmWin, me, 'dialogWidth=' + width + 'px;dialogHeight=' + height + 'px;help:no;status:no');
            if (ret != null) {
                document.getElementById(id1).value = ret[0];
                document.getElementById(id2).value = ret[1];
            }
        }

        function OpenEditWin1(frmWin, width, height, id1) {
            var me;
            me = window;
            var ret = window.showModalDialog(frmWin, me, 'dialogWidth=' + width + 'px;dialogHeight=' + height + 'px;help:no;status:no');
            if (ret != null) {
                document.getElementById(id1).value = ret[1];
            }
        }
        function OpenEditWin2(frmWin, width, height, obj1, obj2, obj3, obj4, obj5, obj6) {
            var me;
            me = window;
            var ret = window.showModalDialog(frmWin, me, 'dialogWidth=' + width + 'px;dialogHeight=' + height + 'px;help:no;status:no');
            if (ret != null) {
                document.getElementById(obj1).value = ret[0];
                document.getElementById(obj2).value = ret[1];
                document.getElementById(obj3).value = ret[2];
                document.getElementById(obj4).value = ret[3];
                document.getElementById(obj5).value = ret[4];
                document.getElementById(obj6).value = ret[5];
                $.post("GetStatus.ashx", { Code: document.getElementById(obj1).value },
                        function(data, textStatus) {
                            $("#tbStatus").val(data.result);
                        },
                        "json");
            }
        }
        </script>

    </form>
</body>
</html>
